package com.ruoyi.db.pms.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import com.ruoyi.framework.aspectj.lang.annotation.Excel;
import com.ruoyi.framework.web.domain.BaseEntity;
import javax.validation.constraints.Size;
import javax.validation.constraints.NotBlank;
import java.util.Date;

/**
 * 关键字对象 pms_keyword
 *
 * @author ruoyi
 * @date 2020-05-04
 */

@ApiModel("关键字实体类")
@Data
@EqualsAndHashCode(callSuper=true)
public class PmsKeyword extends BaseEntity
{
    private static final long serialVersionUID = 1L;



    @ApiModelProperty("关键字ID")
    private Long id;

    @ApiModelProperty("关键字")
    @Excel(name = "关键字")
    @NotBlank(message = "关键字不能为空")
    @Size(min = 0, max = 127, message = "关键字长度不能超过127个字符")
    private String keyword;

    @ApiModelProperty("关键字的跳转链接")
    @Excel(name = "关键字的跳转链接")
    @NotBlank(message = "关键字的跳转链接不能为空")
    @Size(min = 0, max = 255, message = "关键字的跳转链接长度不能超过255个字符")
    private String url;

    @ApiModelProperty("是否是热门关键字")
    @Excel(name = "是否是热门关键字")
    @NotBlank(message = "是否是热门关键字不能为空")
    private Integer isHot;

    @ApiModelProperty("是否是默认关键字")
    @Excel(name = "是否是默认关键字")
    @NotBlank(message = "是否是默认关键字不能为空")
    private Integer isDefault;

    @ApiModelProperty("排序")
    @Excel(name = "排序")
    @NotBlank(message = "排序不能为空")
    private Long sortOrder;

    @ApiModelProperty("创建时间")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date addTime;

    @ApiModelProperty("逻辑删除")
    @Excel(name = "逻辑删除")
    private Integer deleted;
}
